﻿using GestionSaludOcupacional.Repository.Interfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using GestionSaludOcupacional.Data;

namespace GestionSaludOcupacional.Portal.Tests
{
    
    
    /// <summary>
    ///This is a test class for IUnitOfWorkTest and is intended
    ///to contain all IUnitOfWorkTest Unit Tests
    ///</summary>
    [TestClass()]
    public class IUnitOfWorkTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual IUnitOfWork CreateIUnitOfWork()
        {
            // TODO: Instantiate an appropriate concrete class.
            IUnitOfWork target = null;
            return target;
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        [TestMethod()]
        public void SaveTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            target.Save();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AnamnesisRepository
        ///</summary>
        [TestMethod()]
        public void AnamnesisRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<Anamnesis> actual;
            actual = target.AnamnesisRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AntecedenteEnfermedadRepository
        ///</summary>
        [TestMethod()]
        public void AntecedenteEnfermedadRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<AntecedenteEnfermedad> actual;
            actual = target.AntecedenteEnfermedadRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CentroTrabajoRepository
        ///</summary>
        [TestMethod()]
        public void CentroTrabajoRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<CentroTrabajo> actual;
            actual = target.CentroTrabajoRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DatosIndividuoRepository
        ///</summary>
        [TestMethod()]
        public void DatosIndividuoRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<DatosIndividuo> actual;
            actual = target.DatosIndividuoRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for FactorRiesgoRepository
        ///</summary>
        [TestMethod()]
        public void FactorRiesgoRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<FactorRiesgo> actual;
            actual = target.FactorRiesgoRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for HistoriaClinicaRegistroRepository
        ///</summary>
        [TestMethod()]
        public void HistoriaClinicaRegistroRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<HistoriaClinicaRegistro> actual;
            actual = target.HistoriaClinicaRegistroRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for HistoriaClinicaRepository
        ///</summary>
        [TestMethod()]
        public void HistoriaClinicaRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<HistoriaClinica> actual;
            actual = target.HistoriaClinicaRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IndividuoCentroTrabajoRepository
        ///</summary>
        [TestMethod()]
        public void IndividuoCentroTrabajoRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<IndividuoCentroTrabajo> actual;
            actual = target.IndividuoCentroTrabajoRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IndividuoRepository
        ///</summary>
        [TestMethod()]
        public void IndividuoRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<Individuo> actual;
            actual = target.IndividuoRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LogRepository
        ///</summary>
        [TestMethod()]
        public void LogRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<Tbl_Log> actual;
            actual = target.LogRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for TarifaRepository
        ///</summary>
        [TestMethod()]
        public void TarifaRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<Tarifa> actual;
            actual = target.TarifaRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for TipoExamenRepository
        ///</summary>
        [TestMethod()]
        public void TipoExamenRepositoryTest()
        {
            IUnitOfWork target = CreateIUnitOfWork(); // TODO: Initialize to an appropriate value
            IRepository<TipoExamen> actual;
            actual = target.TipoExamenRepository;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
